package org.example.myleet.p930;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(4 == solution.numSubarraysWithSum(new int[]{1,0,1,0,1}, 2));
        Assert.isTrue(2 == solution.numSubarraysWithSum(new int[]{1,0,1,0,1}, 0));
        Assert.isTrue(15 == solution.numSubarraysWithSum(new int[]{0,0,0,0,0}, 0));
        Assert.isTrue(0 == solution.numSubarraysWithSum(new int[]{0,0,0,0,0}, 1));
    }
}
